﻿using BasicModuleWebApiAuthorization.Model;
using Microsoft.EntityFrameworkCore;

namespace BasicModuleWebApiAuthorization.DbConext
{
    public class MysqlDBContext : DbContext
    {
        public MysqlDBContext(DbContextOptions options) : base(options) 
        {
        
        }
        
        //用户表
        public DbSet<UserTable> Permissions { get; set; }

        //用户权限
        public DbSet<UserPermission> userPermissions { get; set; }
        
        /// <summary>
        /// 角色授权
        /// </summary>
        public DbSet<RolePermission> rolePermissions { get; set; }

        /// <summary>
        ///  权限策略 
        /// </summary>
        public DbSet<PermissionPolicy> permissionPolicies { get; set; }
    }
}
